Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin use-subscription to < 1.6.0 #33541

Closed
wants to merge 1 commit into from

Conversation

danilobuerger
Copy link
Contributor

Summary

Starting with 1.6.0 this package relies on react 18 which is currently not supported by rn

See https://github.com/facebook/react/blob/main/packages/use-subscription/package.json#L18

Fixes #33540

Changelog

[General] [Fixed] - Pin use-subscription to < 1.6.0

Test Plan

no test plan

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Mar 31, 2022
@pull-bot
Copy link

pull-bot commented Mar 31, 2022

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against 53d2ce1

@analysis-bot
Copy link

analysis-bot commented Mar 31, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 16397e0
Branch: main

Starting with 1.6.0 this package relies on react 18 which is currently not supported by rn
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,809,173 -558
android hermes armeabi-v7a 7,200,865 -545
android hermes x86 8,117,916 -557
android hermes x86_64 8,098,102 -548
android jsc arm64-v8a 9,643,227 -349
android jsc armeabi-v7a 8,417,478 -351
android jsc x86 9,592,419 -350
android jsc x86_64 10,189,601 -347

Base commit: 16397e0
Branch: main

@ryancat
Copy link
Contributor

ryancat commented Apr 2, 2022

Thanks for adding the fix. I agree this workaround will mitigate the dependency issue. Will import and ship soon.

@facebook-github-bot
Copy link
Contributor

@ryancat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@danilobuerger
Copy link
Contributor Author

Hi @ryancat thanks for the import! Any feedback on why the internal tests fail?

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @danilobuerger in 5534634.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Apr 5, 2022
@danilobuerger danilobuerger deleted the usesubscription branch April 6, 2022 06:43
@ryancat
Copy link
Contributor

ryancat commented Apr 7, 2022

Hi @ryancat thanks for the import! Any feedback on why the internal tests fail?

There were some internal dependencies updates and validations that failed. I had to make more changes beyond just update the semver in one place. But it went through after some digging :)

@danilobuerger
Copy link
Contributor Author

Thanks!

fortmarek pushed a commit that referenced this pull request Apr 13, 2022
Summary:
Starting with 1.6.0 this package relies on react 18 which is currently not supported by rn

See https://github.com/facebook/react/blob/main/packages/use-subscription/package.json#L18

Fixes #33540

## Changelog

[General] [Fixed] - Pin use-subscription to < 1.6.0

Pull Request resolved: #33541

Test Plan:
Run `yarn` in the following directories:
`xplat/js/RKJSModules`
`xplat/js/react-native-github` (Identified from jest test)
`xplat/js/public` (Identified from yarn-validate)

`js1 build buckfiles` (From diff signals)

Reviewed By: yungsters

Differential Revision: D35333789

Pulled By: ryancat

fbshipit-source-id: bdb6232ccd2c5cece397f781609af2de7d36c5ff
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Jan 15, 2023
Summary:
Starting with 1.6.0 this package relies on react 18 which is currently not supported by rn

See https://github.com/facebook/react/blob/main/packages/use-subscription/package.json#L18

Fixes facebook#33540

[General] [Fixed] - Pin use-subscription to < 1.6.0

Pull Request resolved: facebook#33541

Test Plan:
Run `yarn` in the following directories:
`xplat/js/RKJSModules`
`xplat/js/react-native-github` (Identified from jest test)
`xplat/js/public` (Identified from yarn-validate)

`js1 build buckfiles` (From diff signals)

Reviewed By: yungsters

Differential Revision: D35333789

Pulled By: ryancat

fbshipit-source-id: bdb6232ccd2c5cece397f781609af2de7d36c5ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use-subscription could not resolve dependency for react 18
6 participants